package com.xsmart.oa.api;

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.SysParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenzb
 * @create 2018-01-15 下午5:00
 **/
@RestController
@RequestMapping("/api")
public class SysParamController {

    @Autowired
    SysParamService sysParamService;

    @RequestMapping(value = "/v1/CommonService/getSystemParamByCode", method = RequestMethod.POST)
    @ResponseBody
    public Object getSystemParamByCode(@RequestBody RequestBean requestBean, HttpServletRequest request) {
        return sysParamService.getSysParamInfo(requestBean);
    }
}
